package com.xjh.mange.common.util;

import com.xjh.mange.common.constant.UserSessionName;
import com.xjh.mange.model.User;

import javax.servlet.http.HttpSession;

/**
 * @author 徐佳辉
 * @date 2020/12/20 23:32
 */
public class SessionUtil {

    public static String getName(HttpSession session) {
        User u = (User) session.getAttribute(UserSessionName.USER);
        return u.getUserName();
    }

}
